<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<%
String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>编辑用户</title>
  </head>
  <script type="text/javascript">
	  function cardAgioEdit_submit(obj){
	  	$("input[name='cardAgioVO.customerId']").val($("#customerId").val());
	  	return validateCallback(obj, navTabAjaxDone);
	  }
  </script>
  <body>
	<div class="pageContent">
		<form method="post" action="<%=path %>/cardAgio/saveCardAgio.action" class="pageForm required-validate" onsubmit="return cardAgioEdit_submit(this);">
			<div class="pageFormContent" layoutH="56">
				<input name="cardAgioVO.id" type="hidden" value="<s:property value="cardAgioVO.id" />" />

				<p>
					<label>折扣名：</label>
					<input name="cardAgioVO.name" value="<s:property value="cardAgioVO.name" />" class="required" type="text" size="30" alt="请输入折扣名"/>
				</p>
				<p>
					<label>所属商家：</label>
					<input id="customerId" name="customerId" value="<s:property value="cardAgioVO.customerVO.id" />" type="hidden" size="30"/>
					<input name="cardAgioVO.customerVO.id" value="<s:property value="cardAgioVO.customerVO.id" />" type="hidden">
					<input id="customerName" name="customerName" value="<s:property value="cardAgioVO.customerVO.name" />" readonly>
					<c:if test="${SESSION_USER.customer==null}">
					<a class="btnLook" href="<%=path %>/customer/listCustomer.action?searchType=cardAgio" lookupGroup="">选择</a>
					</c:if>
				</p>
			</div>
			<div class="formBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
					<li>
						<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
					</li>
				</ul>
			</div>
		</form>
	</div>
  </body>
</html>